package com.project.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;

/**
 * @author lyl
 * description:员工实体bean
 */
public class EmployeeBean {
    /**
     * 员工id
     */
    private int employeeId;
    /**
     * 员工姓名
     */
    private String employeeName;
    /**
     * 员工生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate employeeBirthday;
    /**
     * 员工工资
     */
    private int money;
    /**
     * 员工所属部门
     */
    private DeptBean deptBean;

    public EmployeeBean() {
    }

    public EmployeeBean(String employeeName, LocalDate employeeBirthday, int money) {
        this.employeeName = employeeName;
        this.employeeBirthday = employeeBirthday;
        this.money = money;
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public LocalDate getEmployeeBirthday() {
        return employeeBirthday;
    }

    public void setEmployeeBirthday(LocalDate employeeBirthday) {
        this.employeeBirthday = employeeBirthday;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public DeptBean getDeptBean() {
        return deptBean;
    }

    public void setDeptBean(DeptBean deptBean) {
        this.deptBean = deptBean;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "employeeId=" + employeeId +
                ", employeeName='" + employeeName + '\'' +
                ", employeeBirthday=" + employeeBirthday +
                ", money=" + money +
                ", deptBean=" + deptBean +
                '}' + "\n";
    }
}
